﻿#ifndef AUTHORITYDAO_H
#define AUTHORITYDAO_H

#include <QObject>
#include <authority.h>

class AuthorityDao
{
public:
    AuthorityDao(QSqlDatabase sqlDatabase);
    ~AuthorityDao();
    bool getList(QList<Authority> &list);
    bool getListByPageAndParam(QList<Authority> &list,const  uint64_t &page,const  uint64_t &pageSize);
    bool getTotalByParam(uint64_t &total);
    bool getOne(Authority &object);
    bool saveOne(Authority &object);
    bool deleteOne(Authority &object);
private:
    QSqlDatabase db;
};

#endif // AUTHORITYDAO_H
